package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.constant.ErrorConstantCode;
import cn.itsource.ymcc.domain.MediaFile;
import cn.itsource.ymcc.factory.MediaFileFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import cn.itsource.ymcc.util.AssertUtil;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "service-media",fallbackFactory = MediaFileFallbackFactory.class)
public interface MediaFileFeignClient{

    @RequestMapping(value = "/mediaFile/getMediaslistByCourseId/{courseId}",method = RequestMethod.GET)
    JSONResult getMediaslistByCourseId(@PathVariable("courseId")Long courseId);
}
